package com.zq.gmall.user.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zq.gmall.bean.UmsMemberLevel;
import com.zq.gmall.service.IUmsMemberLevelService;
import com.zq.gmall.user.mapper.UmsMemberLevelMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 会员等级表 服务实现类
 * </p>
 *
 * @author zheng
 * @since 2020-02-15
 */
@Service
public class UmsMemberLevelServiceImpl extends ServiceImpl<UmsMemberLevelMapper, UmsMemberLevel> implements IUmsMemberLevelService {

    @Autowired
    UmsMemberLevelMapper umsMemberLevelMapper;

    @Override
    public List<UmsMemberLevel> selectAll() {
        return umsMemberLevelMapper.selectList(null);
    }

    @Override
    public UmsMemberLevel selectById(String id) {
        return umsMemberLevelMapper.selectById(id);
    }
}
